package com.daoeping.domain;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Bsc_workyear entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bsc_workyear", catalog = "daoeping")
public class Bsc_workyear implements java.io.Serializable {

	// Fields

	private Integer id;
	private String workyear;
	private String description;
	private Usr_userProduction usr_userProduction;
	private Usr_skill_detail usr_skill_detail;

	// Constructors

	/** default constructor */
	public Bsc_workyear() {
	}

	/** minimal constructor */
	public Bsc_workyear(String workyear) {
		this.workyear = workyear;
	}

	/** full constructor */
	public Bsc_workyear(String workyear, String description) {
		this.workyear = workyear;
		this.description = description;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "workyear", nullable = false, length = 200)
	public String getWorkyear() {
		return this.workyear;
	}

	public void setWorkyear(String workyear) {
		this.workyear = workyear;
	}

	@Column(name = "description", length = 200)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	
	@OneToMany(cascade=CascadeType.ALL,mappedBy="Bsc_workyear")
	public void setUsr_userProduction(Usr_userProduction usr_userProduction) {
		this.usr_userProduction = usr_userProduction;
	}

	@OneToMany(cascade=CascadeType.ALL,mappedBy="Bsc_workyear")
	public void setUsr_skill_detail(Usr_skill_detail usr_skill_detail) {
		this.usr_skill_detail = usr_skill_detail;
	}
	
	

}